package com.changgou.search.dao;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class TestStream {

	public static void main(String[] args) {
		List<String> list = new ArrayList();
		list.add("1");
		list.add("2");
		list.add("3");
		list.add("4");

		List collect = list.stream().map(x -> x.toString()).collect(Collectors.toList());
		//Stream stream = list.stream().map(x -> x.toString());

		System.out.println(collect);
		//System.out.println(stream);

	}
}
